package cn.etynit.org.domain;

import cn.etynit.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    // 二次密码
    private String comfirmPassword;
    // 所属部门
    private Department department;

    // 员工所对应的角色
    private String role;

    // 员工所对应的角色集合
    private List<Long> roles;

}
